mod converter;

fn main() {
    let num_str = "9(10)";
    let base_to: u32 = 8;
    let result = converter::convert_base(num_str, base_to);
    println!("{} -> {}", num_str, result);
    // println!("{:?}", 48_u32 as u8 as char);
    // println!("{} {} {}", 'a' as u8, 'A' as u8, '0' as u8);
    // println!("{} {} {}", 'f' as u8 - 'a' as u8 + 36, 'F' as u8 - 'A' as u8 + 10, '0' as u8);
    // println!("{}", ('A' as u32 - 'A' as u32 + 10) * 16_i32.pow(1) as u32 * 2_i32.pow(1) as u32 + ('A' as u32 - 'A' as u32 + 10) * 16_i32.pow(0) as u32 * 2_i32.pow(1) as u32);
}
